package com.ziyueyuwen.xiniao.dao;

import com.ziyueyuwen.xiniao.bean.wx.TbWxUserInfo;
import com.ziyueyuwen.xiniao.mapper.BaseMapper;

/**
 * @author jun 2018/11/20
 */
public interface TbWxUserInfoMapper{

    /**
     * add
     *
     * @param tbWxUserInfo TbWxUserInfo
     * @return Boolean
     */
    Boolean add(TbWxUserInfo tbWxUserInfo);

    /**
     * exit
     *
     * @param openid String
     * @return Boolean
     */
    Boolean exit(String openid);

    /**
     * update
     *
     * @param tbWxUserInfo TbWxUserInfo
     * @return Boolean
     */
    Boolean update(TbWxUserInfo tbWxUserInfo);

    /**
     * getByOpenid
     *
     * @param openid String
     * @return TbWxUserInfo
     */
    TbWxUserInfo getByOpenid(String openid);

    /**
     * getByWxUserId
     *
     * @param wxUserId String
     * @return TbWxUserInfo
     */
    TbWxUserInfo getByWxUserId(String wxUserId);

    /**
     * 通过手机号码绑定 获取微信信息
     * @param userAccount
     * @return
     */
    TbWxUserInfo getByAccount(String userAccount);
}
